package com.bobo.model;

/**
 * Created by bobo on 2016/10/23.
 */

import java.util.Date;
import java.util.List;

/**
 * 用户
 */
public class User {

    private Integer id;
    private String name;
    private Integer sex; // 男0 女1
    private Date birthday;
    private String phone;
    private String email;
    private String address;
    private String password;
    private Photo photo;
    private Integer status;//状态
    private List<Topic> collection;//收藏的文章
    private List<Topic> publish;//发表的文章

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Photo getPhoto() {
        return photo;
    }

    public void setPhoto(Photo photo) {
        this.photo = photo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<Topic> getCollection() {
        return collection;
    }

    public void setCollection(List<Topic> collection) {
        this.collection = collection;
    }

    public List<Topic> getPublish() {
        return publish;
    }

    public void setPublish(List<Topic> publish) {
        this.publish = publish;
    }


    @Override
    public String toString() {
        return "User{" +
                "status=" + status +
                ", id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", birthday=" + birthday +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", address='" + address + '\'' +
                ", password='" + password + '\'' +
                ", photo=" + photo +
                '}';
    }
}
